package router

import (
	"github.com/gin-gonic/gin"
	"serviceApi/api/goodAPi"
	"serviceApi/api/userapi"
)

func Router(r *gin.Engine) {
	v1 := r.Group("/v1")
	userGroup := v1.Group("/userGroup")
	{
		userGroup.POST("register", userapi.UserRegister)
		userGroup.POST("login", userapi.UserLogin)
	}
	GoodGroup := v1.Group("/goodGroup")
	{
		GoodGroup.GET("/list", goodAPi.GoodList)
		GoodGroup.POST("aliPay", goodAPi.AliPay)
	}

}
